<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>



<table width ="100%" cellpadding ="5" cellspacing ="10">
<tr><td>
<div>
<b>所有圈子</b>
<div id ="grouptypelist">
<table>

<%csharp%>
foreach(GroupInfo Info in groupList)
{

<%/csharp%>
<tr>
<td><a href ="Group.aspx?gid={Info.Id}"><img src ={Info.Logo} width ="100" height ="100" /></a><br /><a href ="Group.aspx?gid={Info.Id}"><span>{Info.GroupName}</span></a>
<br /><a href ="">{Info.Area}</a></td> 
<td>成员数:{Info.UserNum}</td><td>帖子数：{Info.PostNum}</td><td>点击量：{Info.Hits}</td>

</tr>

<%csharp%>
}
<%/csharp%>
</table>
</div>

<div id ="pages">
     <table >
     <tr><td>
            <div>
	            <a href="&page={1}">第一页</a>
	            <a href="&page={_prevpage}">上一页</a>
	            <span>...</span>
            <%csharp%>
            int pageno = 0;
            for(int i=0; i < _pageCount; i++)
            {
	            pageno ++;
            <%/csharp%>	
            <%if {pageno}==_pageIndex %>
	            <a href="&page={pageno}"><b>{pageno}</b></a>
            <%else%>
	            <a href="&page={pageno}">{pageno}</a>
            <%/if%>
            <%csharp%>
            }
            <%/csharp%>	
               <span>...</span>
	            <a href="&page={_nextpage}">下一页</a>
	            <a href="&page={_pageCount}">最后一页</a>
            </div>	
            </td><td>
            <div>
            <form method ="post" action ="">
	            <select id="pagesel" name ="pagesel">
            <%csharp%>
            for(int i=1; i <= _pageCount; i++)
            {
            <%/csharp%>

            <%if i==_pageIndex %>
	            <option value={i} selected =selected >{i}</option>
            <%else%>
	            <option value={i}>{i}</option>
            <%/if%>

            <%csharp%>
            }
            <%/csharp%>
	            </select>
	            <input type ="submit" value ="跳转到" />
            </form>
            </div>
            </td></tr>
            </table>
  </div>
  </div>
  </td>
  <td width ="50%" >
<div>
<b>最新圈子</b>
<div id ="latestgroup">
<table>
<tr>
<%csharp%>
foreach(GroupInfo Info in groupListLatest)
{
<%/csharp%>
<td><a href ="Group.aspx?gid={Info.Id}"><img src ={Info.Logo} width ="100" height ="100" /></a><br /><a href ="Group.aspx?gid={Info.Id}"><span>{Info.GroupName}</span></a></td>
<%csharp%>
}
<%/csharp%>
</tr>
</table>
</div>
<b>最热圈子：</b>
<div id ="hotestgroup">

<table>
<tr>
<%csharp%>
foreach(GroupInfo Info in groupListHotest)
{
<%/csharp%>
<td><a href ="Group.aspx?gid={Info.Id}"><img src ={Info.Logo} width ="100" height ="100" /></a><br /><a href ="Group.aspx?gid={Info.Id}"><span>{Info.GroupName}</span></a></td>
<%csharp%>
}
<%/csharp%>
</tr>
</table>

</div>
</div>

</td>
</tr>
</table>




<%template _footer%>